package polymorphic;

public class Student extends Person {
    public Student() {
    }

    public Student(String name, int age) {
        super(name, age);
    }

    public Student(String info) {
        this.info = info;
    }

    @Override
    public void show() {
        System.out.println("Student show() name=" + getName() + " age=" + getAge());
    }

    /**
     * 获取
     * @return info
     */
    public String getInfo() {
        return info;
    }

    public String toString() {
        return "Student{info = " + info + "}";
    }
}
